#pragma once
#include "ServiceBase.h"
#include "BridgeManager.h"
#include "CtrlManager.h"

class BridgeService :
    public ServiceBase
{
public:
    BridgeService();

    void Run(BridgeManager* manager);

private:
    void OnStart(DWORD argc, TCHAR* argv[]) override;
    void OnStop() override;

private:
    BridgeManager* manager;
    CtrlManager* ctrlManager;

    BOOL bStopping;
    HANDLE hStoppedEvent;
};

